<?php

namespace App\Models;


class GoodsDesc extends Base
{

    // 用户管理
    protected $table = 'goods_desc';
    const UPDATED_AT = null;

    // 缓存字段，用于搜索绑定的字段
    protected $cacheFields = ['id', 'ip'];


    // 定义验证操作
    public function rules()
    {

        $add = [
        ];

        $edit = [
        ];

        $info = [
        ];


        $rule = [
            'ip'   => 'required',
            'city' => 'required',
            'prov' => 'required',
        ];


        $msg = [
            'id'       => '自编号',
            'goods_id' => '文章ID',
            'describe' => '描述',
            'content'  => '档案详细内容',
            'ctime'    => '创建时间',
        ];

        return ['rule' => $rule, 'msg' => $msg, 'add' => $add];
    }
}
